package org.szpshang.framework.support.dao.hibernate;

import java.io.Serializable;
import java.util.List;

import org.szpshang.bean.JsonDataBean;


public interface HibernateDao {
	
	Serializable save(Object entity);
	
	void update(Object entity);
	
	void delete(Object entity);
	
	void delete(Class<?> t, Integer... ids);
	
	void delete(List<?> entityList);
	
	<T> T get(Class<T> t,Integer id);
	
	List<?> findByHQL(String hql);
	
	JsonDataBean findPageByHql(int pageNo, int pageSize, String hql, Object... params);

	
}
